package br.ufrn.engcomp.arq.exceptions;

import br.ufrn.engcomp.arq.messages.MessagesControl;
import br.ufrn.engcomp.arq.messages.MessagesWeb;

/**
 * 
 * @author Claudio
 * 
 */
public class SegurancaException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private MessagesControl messages; 
	
	public SegurancaException() {
		super();
	}
	
	public SegurancaException(Exception ex) {
		ex.printStackTrace();
	}

	public SegurancaException(String messages) {
		this.messages = new MessagesWeb();
		this.messages.addMessage(messages);
	}
	
	public SegurancaException(Exception ex, String messages) {
		this.messages = new MessagesWeb();
		this.messages.addMessage(messages);
		ex.printStackTrace();
	}
}
